<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<fmt:setLocale value="${LANGUAGE}" scope="session"/>
<fmt:setBundle basename="message" scope="session"/>

<html>
<head>

<title>Index jsp</title>
</head>
<body>
<form action="login.jlc" method="post">
<table align='center' border='2' bgcolor="lightblue">

<c:if test="${REQUIRED ne null}">
<tr bgcolor="yellow">
<td colspan="2" align="center"><font color="red" size="4">
<fmt:message key="info.required"/>
</font>
</td>
</tr>
</c:if>

<c:if test="${ERROR ne null}">
<tr bgcolor="black">
<td colspan="2" align="center"><font color="red" size="4">
<fmt:message key="login.error"/>
</font>
</td>
</tr>
</c:if>

<c:if test="${LOGOUT_SUCCESS ne null}">
<tr bgcolor="black">
<td colspan="2" align="center"><font color="yellow" size="4">
<fmt:message key="logout.success"/>
</font>
</td>
</tr>
</c:if>

<tr>
<td colspan="2" align="center"><font color="#800000" size="5">
<fmt:message key="header"/>
</font></td>
</tr>

<tr>
<td><fmt:message key="username"/></td>
<td><input type="text" name="uname"></td>
</tr>

<tr>
<td><fmt:message key="password"/></td>
<td><input type="password" name="pswd"></td>
</tr>

<tr><td colspan="2" align="center"><input type="hidden" name="language" value="${pageContext.response.locale.language}">

<input style="font-size:25;font-family:'<fmt:message key="font"/>'" type="submit"
value='<fmt:message key="login.button"/>'>

</td></tr>

</table>
</form>
<hr/>
<h2>
<center>
<a href="changelocale.jlc?language=en"><fmt:message key="english"/></a>
&nbsp;&nbsp;
<a href="changelocale.jlc?language=hi"><fmt:message key="hindi"/></a>

</center>
</h2>

</body>
</html>